#include <iostream>
#include <cstring>
using namespace std;

int main()
{
    char a[]="lello";
    char *arr[strlen(a)];
    //字符串赋值
    a[0]='h';
    cout<<a<<endl;
    cout<< "字符串长度"<<strlen(a)<<endl;

    for (int i=0;i<strlen(a);i++)
    {   
        arr[i] = &a[i];
    }
    // 输出字符串,cout 输出字符串遇到 /0 结束
    cout << *arr<< endl;
    return 0;  
}